package com.ghck.server.model;

import java.util.Date;
/**
 * 测试题  <br>
 * t_test_question <br>
 * v1.0 2016-05-01
 */
 public class TestQuestion extends BaseModel implements Comparable<TestQuestion>{
	
	private static final long serialVersionUID = 1L;
	
 	
 	//id
	private Integer id;

 	//测试类型ID dict_test_category 表ID
 	//category_id
	private Integer categoryId;

 	//类型1:单选,2:多选
 	//type
	private Integer type;

 	//问题描述
 	//description
	private String description;

 	//题目分数
 	//score
	private Integer score;

 	//算分机制描述
 	//remark
	private String remark;

 	//是否在用,0：未使用,1：正在使用
 	//in_used
	private Integer inUsed;

 	//在类型中的排序
 	//seq
	private Integer seq;

 	
 	//last_modify_time
	private Date lastModifyTime;

 	
 	//create_time
	private Date createTime;

	
	/**
	*
 	*id
 	*/
	public Integer getId() {
		return id;
	}
	
	/**
	*
 	*id
 	*/
	public void setId(Integer id) {
		this.id = id;
	}
	
	/**
	*测试类型ID dict_test_category 表ID
 	*category_id
 	*/
	public Integer getCategoryId() {
		return categoryId;
	}
	
	/**
	*测试类型ID dict_test_category 表ID
 	*category_id
 	*/
	public void setCategoryId(Integer categoryId) {
		this.categoryId = categoryId;
	}
	
	/**
	*类型1:单选,2:多选
 	*type
 	*/
	public Integer getType() {
		return type;
	}
	
	/**
	*类型1:单选,2:多选
 	*type
 	*/
	public void setType(Integer type) {
		this.type = type;
	}
	
	/**
	*问题描述
 	*description
 	*/
	public String getDescription() {
		return description;
	}
	
	/**
	*问题描述
 	*description
 	*/
	public void setDescription(String description) {
		this.description = description;
	}
	
	/**
	*题目分数
 	*score
 	*/
	public Integer getScore() {
		return score;
	}
	
	/**
	*题目分数
 	*score
 	*/
	public void setScore(Integer score) {
		this.score = score;
	}
	
	/**
	*算分机制描述
 	*remark
 	*/
	public String getRemark() {
		return remark;
	}
	
	/**
	*算分机制描述
 	*remark
 	*/
	public void setRemark(String remark) {
		this.remark = remark;
	}
	
	/**
	*是否在用,0：未使用,1：正在使用
 	*in_used
 	*/
	public Integer getInUsed() {
		return inUsed;
	}
	
	/**
	*是否在用,0：未使用,1：正在使用
 	*in_used
 	*/
	public void setInUsed(Integer inUsed) {
		this.inUsed = inUsed;
	}
	
	/**
	*在类型中的排序
 	*seq
 	*/
	public Integer getSeq() {
		return seq;
	}
	
	/**
	*在类型中的排序
 	*seq
 	*/
	public void setSeq(Integer seq) {
		this.seq = seq;
	}
	
	/**
	*
 	*last_modify_time
 	*/
	public Date getLastModifyTime() {
		return lastModifyTime;
	}
	
	/**
	*
 	*last_modify_time
 	*/
	public void setLastModifyTime(Date lastModifyTime) {
		this.lastModifyTime = lastModifyTime;
	}
	
	/**
	*
 	*create_time
 	*/
	public Date getCreateTime() {
		return createTime;
	}
	
	/**
	*
 	*create_time
 	*/
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	
	@Override
	public int compareTo(TestQuestion o) {
		if(seq!=null && o!=null && o.getSeq()!=null){
			return o.seq.compareTo(this.seq);
		}
		return 0;
	}
	@Override
	public void dealWith(){
		super.dealWith();
		
	}
}	